package com.dave.gd.sysmgr.domain.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;


@Table(name = "el_user")
public class User  implements Serializable{//extends AbstractBaseEntity<Integer>{


    /**
     * .
     */
    private static final long serialVersionUID = -5224807641415396143L;

    /**
     * 用户id
     */
    @Id
    @Column(name = "id")
    private Integer id=0;

    /**
     * 密码密文
     */
    @Column(name = "pwd")
    private String pwd;

    /**
     * 保存用户最近的一个sessionId
     */
    @Column(name = "sessionId")
    private String sessionId;

    /**
     * 用户email
     */
    @Column(name = "email")
    private String email;

    /**
     * 从课程界面最近的一次访问时间
     */
    @Column(name = "lastAccessTime")
    private Timestamp lastAccessTime;

    /**
     * 重设密码用
     */
    @Column(name = "resetpwd")
    private String resetpwd;

    /**
     * 用户名
     */
    @Column(name = "uname")
    private String uname;

    /**
     * 
     */
    @Column(name = "deleted")
    private String deleted;

    /**
     * 
     */
    @Column(name = "deleteTime")
    private Timestamp deleteTime;

    /**
     * 与明文密码一起生成passwd
     */
    @Column(name = "salt")
    private String salt;
    
    private UserInfo userInfo;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Timestamp getLastAccessTime() {
        return lastAccessTime;
    }

    public void setLastAccessTime(Timestamp lastAccessTime) {
        this.lastAccessTime = lastAccessTime;
    }

    public String getResetpwd() {
        return resetpwd;
    }

    public void setResetpwd(String resetpwd) {
        this.resetpwd = resetpwd;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted;
    }

    public Timestamp getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Timestamp deleteTime) {
        this.deleteTime = deleteTime;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }


 

 /*   @Override
    public Integer getId() {
        return this.id;
    }

    @Override
    public void setId(Integer id) {
        this.id=id;
    }
    public static IUserRepository repository() {
        return (IUserRepository) RepositoryRegister.getInstance()
                .getRepository(User.class);
    }
*/
}
